package com.dingqb.broadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

/**
 * 
 * @author DingQingbo
 * 
 */
public class BroadcastD extends BroadcastReceiver {
	@Override
	public void onReceive(Context context, Intent intent) {
		if (intent.getAction().equals("action_123")) {
			int info = intent.getExtras().getInt("count");
			Toast.makeText(context, "数目==" + info, Toast.LENGTH_SHORT).show();
		}
		System.out.println("receiver==" + intent.getAction());

	}

}
